home *** CD-ROM | disk | FTP | other *** search
- !!Script
- // Copyright ⌐ 1997-1998 - Modelworks Software
-
- // Insert script helper for:
-
- /**
- @Object: ToolBarEditButton
- @Property: width - specifies the width of the label in
- pixels.
- See Tools/Objects/FinderToolBar.script for an example of how to use this object.
- @Syntax: width
- @Summary: width - specifies the width of the label
- */
-
- function DoCommand()
- {
- var editor = getActiveEditor();
- if (editor)
- {
- var selection = editor.getSelection();
- editor.replace("button.width", selection);
- editor.setActive("Insert button.width");
- }
- }
-
- !!/Script
-